from rest_framework.views import APIView
from rest_framework.response import Response

class IndexView(APIView):
    def get(self, request, *args, **kwargs):
        return Response({'code': 200, "data":[], 'message': 'api successful'})
